<?php

session_start();
if ($_SESSION[groupid] == '0') {
    echo ("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
    <title>Plaintech UK Employee Registration</title><link rel=\"stylesheet\" type=\"text/css\" href=\"css/register.css\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"css/layout.css\" /></head>


<body>
<div id=\"header\" class=\"ui-layout-north\">
    <div id=\"logo\">
        <img src=\"images/plaintech-small.png\"/>
    </div>
    <div id=\"login-info\">
        Welcome <span id=\"user\"></span>&nbsp;|&nbsp;<a href=\"logout.php\" id=\"logout\" methode=\"GET\">Sign Out</a>
</div>
    </div>
</div>

<div id=\"area\">
      <div id=\"logo_plaintech\">
     </div>
      <form name=\"form1\" method=\"post\" action=\"adduser.php\">
            <div class=\"border\" id=\"register\">
            <div class=\"content\">
              <strong>Registration</strong><br>
              <h6>Username
            <input name=\"myusername\" type=\"text\" id=\"myusername\" class=\"box\"/>
                Password
                <input name=\"mypassword\" type=\"password\" id=\"mypassword\" class=\"box\"/>
                Repeat password
                <input name=\"mypasswordrepeat\" type=\"password\" id=\"mypasswordrepeat\" class=\"box\"/>
                <br>
                User Group<br>
                <select name=\"mygroupname\">
                  <option value=\"admin\">Admin</option>
                  <option value=\"users\">User</option>
                </select>
                <input type=\"submit\" id=\"register_btn\" value=\"\" />
              </h6>
            </div>
        </div>
      </form>     
</div>
<center>Go back to the login screen <a href=\"login.php\">Logout</a></center>
</body>
</html>");
} 

else {
    header("location:login.php");
}
?>
                <div id="footer" class="ui-layout-south">
    Copyright 2011 &copy; Plaintech UK (<a href="http://www.Plaintech.com" target="_blank">www.Plaintech.com </a>). All Rights Reserved.
</div>